package com.yuwubao.hz_International.entities.repository;

import com.yuwubao.hz_International.entities.ProceedsConfigEntity;
import org.jetbrains.annotations.NotNull;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by yangyu on 2018/1/29.
 */
public interface ProceedsConfigRepository extends JpaRepository<ProceedsConfigEntity, Integer>, JpaSpecificationExecutor<ProceedsConfigEntity> {
    @Query(nativeQuery = true,value = "SELECT customerServicePhone from proceeds_config ORDER BY id DESC  LIMIT 1")
    String getLast();
}
